//
//  XJ_SetViewController.m
//  XunJieProject
//
//  Created by xue on 2018/6/8.
//  Copyright © 2018年 Soowin. All rights reserved.
//

#import "XJ_SetViewController.h"
#import "XJ_ChangePasswordViewController.h"
#import "XJ_NoticeViewController.h"
#import "XJ_VersionInfoViewController.h"

@interface XJ_SetViewController ()
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *up_changePassView;

@end

@implementation XJ_SetViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

-(void)creatMainUI{
    
    self.nav_titleLabel.text =@"设置";
    _up_changePassView.constant =SafeAreaTopHeight;
}
- (IBAction)Click_btn:(id)sender {
    UIButton *button =(UIButton*)sender;
    switch (button.tag) {
        case 0://修改密码
        {
            XJ_ChangePasswordViewController *change =[[XJ_ChangePasswordViewController alloc]init];
            change.userInfoModel =self.userInfoModel;
            [self.navigationController pushViewController:change animated:YES];
        }
            break;
        case 1://公告通知
        {
            XJ_NoticeViewController *notice =[[XJ_NoticeViewController alloc]init];
            [self.navigationController pushViewController:notice animated:YES];
        }
            break;
        case 2://版本信息
        {
            XJ_VersionInfoViewController *version =[[XJ_VersionInfoViewController alloc]init];
            [self.navigationController pushViewController:version animated:YES];
        }
            break;
      
            
        default:
            break;
    }
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
